export function fetchApiMethodOptions(data) {
  return [
    { key: 0, display_name: 'POST' },
    { key: 1, display_name: 'GET' }
  ]
}

export function fetchApiMethodKeyValue(options) {
  return options.reduce((acc, cur) => {
    acc[cur.key] = cur.display_name
    return acc
  }, {})
}

export function fetchApiMethodType() {
  return {
    0: 'success',
    1: ''
  }
}
